<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {

    public function index(){
    	$tpl=C('template_style');
    	$index="./Template/$tpl/index.html";
        $this->display($index);
    }

    public function category(){
    	$cid=I('cid');
    	$category=S('c');
  		foreach ($category as $k => $v) {
  			if($v['cid']==$cid){
  				$list_tpl=$v['list_tpl'];
  			}
  			
  		}
  		$tpl=C('template_style');
  		$list="./Template/$tpl/$list_tpl";

    	$this->display($list);
    	// dump($list_tpl);

    }



    public function content(){
    	$contid=I('contid');
    	



    }














}